<!-- 填写维修 -->
<template>
  <div class="content">
    <avue-form
      class="avueForm"
      v-if="visible"
      v-model="formData"
      :option="config"
      @submit="requestPutTask"
    />
  </div>
</template>

<script>
export default {
  data () {
    return {
      visible: true,
      formData: {},
      config: {}
    }
  },
  created () {
    const { formData, config } = this.$route.query
    this.formData = formData
    this.config = JSON.parse(config)
  },
  components: {},

  computed: {},

  methods: {
    requestPutTask (val) {
      console.log(val, 'adf')
    }
  }
}
</script>
<style lang='less' scoped>
  .content {
    width: 100%;
    height: 100%;
    background: #fff;
    > .avueForm {
      margin-top: 15px;
    }
  }
</style>
